//
//  CommunityManageCell.m
//  QRMaster
//
//  Created by myApple on 16/4/26.
//  Copyright © 2016年 myApple. All rights reserved.
//

#import "CommunityManageCell.h"

@interface CommunityManageCell()
{
    UILabel * titleLabel;
    UIImageView * authenImageView;
    UILabel * authenLabel;
}

@end


@implementation CommunityManageCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        //        btnToTimeId = [[NSMutableArray alloc]init];
        [self prepareView];
    }
    return self;
}


-(void)prepareView
{
    float x = 22;
    float y = (56 - 20) / 2.0;
    float width = UI_SCREEN_WIDTH - x;
    float height = 20;
    
    titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(x, y, width, height)];
    titleLabel.font = [UIFont systemFontOfSize:16.0];
    titleLabel.textColor = UIColorFromRGB(0x333333);
    titleLabel.numberOfLines = 3;
    [self.contentView addSubview:titleLabel];
    
//    //认证
//    x = UI_SCREEN_WIDTH / 2.0 - 40;
//    y = (56 - 20) / 2.0;
//    width = 150;
//    height = 20;
//    authenLabel = [[UILabel alloc]initWithFrame:CGRectMake(x, y, width, height)];
//    authenLabel.font = [UIFont systemFontOfSize:15.0];
//    [self.contentView addSubview:authenLabel];
    
//    //认证图片
//    x = UI_SCREEN_WIDTH / 2.0;
//    width = 25;
//    height = 30;
//    y = (self.frame.size.height - height) / 2.0;
//    authenImageView = [[UIImageView alloc]initWithFrame:CGRectMake(x, y, width, height)];
//    authenImageView.hidden = YES;
//    [self.contentView addSubview:authenImageView];
    
    
//    x = UI_SCREEN_WIDTH - 24;
//    y = (56 - 12) /2.0;
//    width = 8;
//    height = 12;
//    UIImageView * nextImageView = [[UIImageView alloc]initWithFrame:CGRectMake(x, y, width, height)];
//    nextImageView.image = [UIImage imageNamed:@"nextIndicate"];
//    [self.contentView addSubview:nextImageView];
   
}

-(void)setTitleString:(NSString *)titleString
{
    _titleString = titleString;
    titleLabel.text = titleString;
    
}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
